module.exports = app => {

  const { controller, middleware, router } = app;

  router.get('获取用户详情', '/user/user/info', middleware.jwt(), controller.user.info);
  router.get('获取用户列表', '/user/user/list', middleware.jwt(), controller.user.list);
  router.post('新增用户', '/user/user/insert', middleware.jwt(), controller.user.insert);
  router.post('更新用户', '/user/user/update', middleware.jwt(), controller.user.update);
  router.post('删除用户', '/user/user/delete', middleware.jwt(), controller.user.delete);
  router.post('忘记密码', '/user/user/forget', middleware.jwt(), controller.user.forgetPassword);
  router.post('更新密码', '/user/user/change', middleware.jwt(), controller.user.changePassword);
  router.post('注册账户', '/user/user/register', controller.user.register);
  router.post('初始化账户', '/user/user/init', controller.user.init);
};
